package io.bsly.modules.app.service.sourceDb.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.bsly.common.utils.PageUtils;
import io.bsly.common.utils.Query;
import io.bsly.modules.app.dao.sourceDao.RoomStatusDao;
import io.bsly.modules.app.entity.sourceEntity.RoomStatusEntity;
import io.bsly.modules.app.service.sourceDb.RoomStatusService;
import org.springframework.stereotype.Service;
import java.util.Map;

@DS("slave")
@Service("roomStatusService")
public class RoomStatusServiceImpl extends ServiceImpl<RoomStatusDao, RoomStatusEntity> implements RoomStatusService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<RoomStatusEntity> page = this.page(
                new Query<RoomStatusEntity>().getPage(params),
                new QueryWrapper<RoomStatusEntity>()
        );

        return new PageUtils(page);
    }

}